Add in a "style_set" handler so that the background of the clist changes
authorOwen Taylor <otaylor@redhat.com>
Fri, 11 Dec 1998 10:52:30 +0000 (10:52 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Fri, 11 Dec 1998 10:52:30 +0000 (10:52 +0000)
Fri Dec 11 05:49:30 1998  Owen Taylor  <otaylor@redhat.com>

* gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
handler so that the background of the clist changes
with the theme.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkclist.c

index 3805d5158ab88aaa2bee94d8c8c127bdf23461e2..0ddd8bafe4c0419baee7a5e36ef1a56b623f8415 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Fri Dec 11 05:49:30 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
+       handler so that the background of the clist changes
+       with the theme.
+
 Thu Dec 10 22:02:49 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.1.7
index 3805d5158ab88aaa2bee94d8c8c127bdf23461e2..0ddd8bafe4c0419baee7a5e36ef1a56b623f8415 100644 (file)
@@ -1,3 +1,9 @@
+Fri Dec 11 05:49:30 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
+       handler so that the background of the clist changes
+       with the theme.
+
 Thu Dec 10 22:02:49 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.1.7
index 3805d5158ab88aaa2bee94d8c8c127bdf23461e2..0ddd8bafe4c0419baee7a5e36ef1a56b623f8415 100644 (file)
@@ -1,3 +1,9 @@
+Fri Dec 11 05:49:30 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
+       handler so that the background of the clist changes
+       with the theme.
+
 Thu Dec 10 22:02:49 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.1.7
index 3805d5158ab88aaa2bee94d8c8c127bdf23461e2..0ddd8bafe4c0419baee7a5e36ef1a56b623f8415 100644 (file)
@@ -1,3 +1,9 @@
+Fri Dec 11 05:49:30 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
+       handler so that the background of the clist changes
+       with the theme.
+
 Thu Dec 10 22:02:49 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.1.7
index 3805d5158ab88aaa2bee94d8c8c127bdf23461e2..0ddd8bafe4c0419baee7a5e36ef1a56b623f8415 100644 (file)
@@ -1,3 +1,9 @@
+Fri Dec 11 05:49:30 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
+       handler so that the background of the clist changes
+       with the theme.
+
 Thu Dec 10 22:02:49 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.1.7
index 3805d5158ab88aaa2bee94d8c8c127bdf23461e2..0ddd8bafe4c0419baee7a5e36ef1a56b623f8415 100644 (file)
@@ -1,3 +1,9 @@
+Fri Dec 11 05:49:30 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
+       handler so that the background of the clist changes
+       with the theme.
+
 Thu Dec 10 22:02:49 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.1.7
index 3805d5158ab88aaa2bee94d8c8c127bdf23461e2..0ddd8bafe4c0419baee7a5e36ef1a56b623f8415 100644 (file)
@@ -1,3 +1,9 @@
+Fri Dec 11 05:49:30 1998  Owen Taylor  <otaylor@redhat.com>
+
+       * gtk/gtkclist.c (gtk_clist_style_set): Add in a "style_set"
+       handler so that the background of the clist changes
+       with the theme.
+
 Thu Dec 10 22:02:49 CST 1998 Shawn T. Amundson <amundson@gtk.org>
 
        * Released GTK+ 1.1.7
index fc5fdc24137d8fa8fe1b38de2dfaeecc6e8cb951..5d54fd078eae0ac146713fda4099c253850f9e0c 100644 (file)
@@ -4689,6 +4689,13 @@ gtk_clist_style_set (GtkWidget *widget,
 
   clist = GTK_CLIST (widget);
 
+  if (GTK_WIDGET_REALIZED (widget))
+    {
+      gtk_style_set_background (widget->style, widget->window, widget->state);
+      gtk_style_set_background (widget->style, clist->title_window, GTK_STATE_SELECTED);
+      gdk_window_set_background (clist->clist_window, &widget->style->bg[GTK_STATE_PRELIGHT]);
+    }
+
   /* Fill in data after widget has correct style */
 
   /* text properties */